﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;
using Lamex.Interface;
using Lamex.Library.CommonClass;

namespace Lamex.mSA.UI
{
    public partial class frmSA_Main : frmModuleBase
    {
        public frmSA_Main()
        {
            InitializeComponent();
            menuStrip1.Text = ModuleNames.mSA; //与AssemblyModuleEntry.ModuleName定义相同
        }

        public override MenuStrip GetModuleMenu()
        {
            return this.menuStrip1;
        }

        private void menuSA_Loading_List_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("Transfer_SA_DN_List", 0, false, false), sender as ToolStripMenuItem);
        }

        private void menuSA_CBM_Test_Click(object sender, EventArgs e)
        {
            //MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmSA_DN_Test), sender as ToolStripMenuItem);
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmSA_DN_CBM_WT_Calculate), sender as ToolStripMenuItem);
        }

        private void menuSA_CBM_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frm_SA_DN_CBM_WT), sender as ToolStripMenuItem);
        }

        private void menuSA_Delivery_List_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frm_SA_DN_CBM_WT), sender as ToolStripMenuItem);
        }
    }
}